← Back to issue list

No helpfull message when command doesn't exist

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#2048898
Type
issue
State
open
Author
~gbeuzeboc
Labels
Created
2024-01-10 13:43:53.803976+00:00
Updated
2024-01-10 13:43:53.803976+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

If the command specified in the YAML doesn't actually exist, snapcraft provides the following non-helpful message: Command '['snap', 'pack', '--filename', 'liquidctl_test_amd64.snap', '--compression', 'xz', PosixPath('/root/prime'), PosixPath('/root/project')]' returned non-zero exit status 1. Failed to execute pack in instance. I used the following example snapcraft.yaml: name: liquidctl summary: empty description: | empty version: test base: core22 confinement: strict parts: liquidctl: plugin: python source: . stage-packages: - python3-usb apps: liquidctl: command: wrongname # Here is the line that makes it fails. plugs: - raw-usb - hardware-observe If the file could be checked, that would help to provide a helpful message for developers. snapcraft --version snapcraft 8.0.1

Evaluation history

No evaluation history available.